package com.tech.pattern.template.eg;

public class HummerH2Model extends HummerModel {

    @Override
    protected void start() {
        System.out.println("HummerH2Model start...");
    }

    @Override
    protected void stop() {
        System.out.println("HummerH2Model stop...");
    }

    @Override
    protected void alarm() {
        System.out.println("HummerH2Model alarm...");
    }

    @Override
    protected void engineBoom() {
        System.out.println("HummerH2Model engineBoom...");
    }
    
    // 钩子方法，默认没有喇叭：能挂到HummerModel
    @Override
    protected boolean isAlarm() {
        return false;
    }
   

}
